﻿//
// Created by francklinson on 2021/3/26.
//

#ifndef CPPPRIMERPLUSREADINGCODES_TABLETENNISPLAYER_H
#define CPPPRIMERPLUSREADINGCODES_TABLETENNISPLAYER_H

#include <string>

using std::string;

// simple base class
class TableTennisPlayer
{
private:
    string firstname;
    string lastname;
    bool hasTable;
public:
    explicit TableTennisPlayer(const string &fn = "none",
                      const string &ln = "none", bool ht = false);

    void Name() const;

    bool HasTable() const
    { return hasTable; };

    void ResetTable(bool v)
    { hasTable = v; };
};

#endif //CPPPRIMERPLUSREADINGCODES_TABLETENNISPLAYER_H
